$(document).ready(function(){
    if($.cookie("modal") != 'true')
    {
var newURL = window.location.href;
var newTitle = document.title;
        var _message_to_show = '<h3>'+newTitle+'</h3><br><iframe allowTransparency="true" src="http://www.facebook.com/plugins/like.php?href='+ newURL +'&send=false&layout=button_count&show_faces=false&width=55&action=like&font=arial&colorscheme=light&height=20"  frameborder="0" scrolling="no" style="border:none; overflow:hidden;  width:100px; height:20px"/></iframe><br><iframe allowTransparency="true" src="https://fancybox-cookie-popup.googlecode.com/svn/trunk/fancybox/feedburner.html"  frameborder="0" scrolling="no" style="border:none; overflow:hidden;  width:400px; height:102px;"/></iframe><a href="#" id="modal_close"><div id="cboxClose" style="float: left; ">close</div></a>';
        $.fancybox(
            _message_to_show,
            {
                'width'             : 350,
                'height'            : 300,
                'transitionIn'      : 'none',
                'transitionOut'     : 'elastic',
                'centerOnScroll'    : 'true',
                'overlayOpacity'    : 0.9,
                'overlayColor'      : '#000',
                'modal'             : 'true'
            }
        );

        $('#modal_close').live('click', function(e) {
            e.preventDefault();
            $.cookie("modal", "true", { path: '/', expires: 7 });   
            $.fancybox.close()
        });
    }
});